package com.easy.dao;

import com.easy.bean.Bed;
import com.easy.bean.Patient;
import com.easy.util.Page;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
@Mapper
public interface IBedDao {
    List<Bed> getBed(@Param("bed") Bed bed, @Param("page") Page page);

    int addBed(Bed bed);

    Bed getBedById(int id);
    int editBed(Bed bed);
    int updateBed(int id);

    int updateBedStatus(int id);

    int delBed(int id);
    int getCount(@Param("bed") Bed bed);

    List<Bed> getBednember();
    List<Bed> getBednemerByWid(Bed bed);

}
